@extends('backend.layouts.page')
@section('content')
    <form class="form-horizontal ajaxForm"  action="{{url($baseRoute.'save')}}">
        <input type="hidden" name="module_id" value="{{$module_id}}"/>
        <input type="hidden" name="controller" value="{{$controllerName}}"/>
        <div class="form-group">
            <label class="col-xs-3 control-label required">操作</label>
            <div class="col-xs-9">
                <select name="action" class="form-control">
                    @foreach($actions->data as $item)
                        <option value="{{$item['code']}}">{{$item['name']}}</option>
                    @endforeach
                </select>
            </div>
        </div>
        <div class="form-group">
            <label class="col-xs-3 control-label required">名称</label>
            <div class="col-xs-9">
                <input type="text" class="form-control" value="" placeholder="名称长度2-20位" name="name">
            </div>
        </div>
        <div class="form-group">
            <div class="col-xs-9 col-xs-offset-3">
                <button class="btn btn-primary" type="submit">立即提交</button>
            </div>
        </div>
    </form>
@stop
